<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.10"/>
<title>sock: E:/git/sock/sock/net/tcp_connection_stream.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { init_search(); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">sock
   &#160;<span id="projectnumber">v0.11</span>
   </div>
   <div id="projectbrief">C++ Network Library</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.10 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
      <li><a href="globals.html"><span>File&#160;Members</span></a></li>
    </ul>
  </div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_885cc87fac2d91e269af0a5a959fa5f6.html">E:</a></li><li class="navelem"><a class="el" href="dir_4e091ed8704426a7a4980368ba259fde.html">git</a></li><li class="navelem"><a class="el" href="dir_99ede9081e3122cb31ab1bd7b142cd6c.html">sock</a></li><li class="navelem"><a class="el" href="dir_7c33e989e8c050d7b2ba91a16c41033d.html">sock</a></li><li class="navelem"><a class="el" href="dir_d903d5916af6fe48bd2085e947d1c878.html">net</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="headertitle">
<div class="title">tcp_connection_stream.h</div>  </div>
</div><!--header-->
<div class="contents">
<a href="tcp__connection__stream_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="comment">/******************************************************************************</span></div>
<div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;<span class="comment"> * Name         : tcp_connection_stream.h</span></div>
<div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;<span class="comment"> * Author       : 671643387</span></div>
<div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;<span class="comment"> * Date         : 2015年10月6日</span></div>
<div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;<span class="comment"> * Description  : 连接流，缓存从网络收到的数据或者需要发送到网络的数据</span></div>
<div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;<span class="comment"> *****************************************************************************/</span></div>
<div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;</div>
<div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;<span class="preprocessor">#ifndef SOCK_NET_TCP_CONNECTION_STREAM_H_</span></div>
<div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;<span class="preprocessor">#define SOCK_NET_TCP_CONNECTION_STREAM_H_</span></div>
<div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;</div>
<div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;<span class="preprocessor">#include &lt;boost/noncopyable.hpp&gt;</span></div>
<div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;<span class="preprocessor">#include &lt;boost/shared_array.hpp&gt;</span></div>
<div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;<span class="preprocessor">#include &lt;boost/pool/pool.hpp&gt;</span></div>
<div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;<span class="preprocessor">#include &lt;<a class="code" href="socket_8h.html">sock/net/socket.h</a>&gt;</span></div>
<div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;</div>
<div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160;<span class="keyword">namespace </span><a class="code" href="namespacesock.html">sock</a></div>
<div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160;{</div>
<div class="line"><a name="l00018"></a><span class="lineno">   18</span>&#160;    <span class="keyword">namespace </span>net</div>
<div class="line"><a name="l00019"></a><span class="lineno">   19</span>&#160;    {</div>
<div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160;</div>
<div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160;<span class="preprocessor">#if defined(__WINDOWS__)</span></div>
<div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160;<span class="preprocessor">#   ifndef _SSIZE_T</span></div>
<div class="line"><a name="l00023"></a><span class="lineno">   23</span>&#160;<span class="preprocessor">#   define _SSIZE_T</span></div>
<div class="line"><a name="l00024"></a><span class="lineno">   24</span>&#160;        <span class="keyword">typedef</span> <span class="keywordtype">signed</span> <span class="keywordtype">int</span> ssize_t;</div>
<div class="line"><a name="l00025"></a><span class="lineno">   25</span>&#160;<span class="preprocessor">#   endif</span></div>
<div class="line"><a name="l00026"></a><span class="lineno">   26</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00027"></a><span class="lineno">   27</span>&#160;</div>
<div class="line"><a name="l00028"></a><span class="lineno"><a class="line" href="namespacesock_1_1net.html#a2165d5b91136adc8c72ad25bfdbd0968">   28</a></span>&#160;        <span class="keyword">class </span><a class="code" href="classsock_1_1net_1_1_tcp_connection.html">TcpConnection</a>;</div>
<div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160;</div>
<div class="line"><a name="l00030"></a><span class="lineno">   30</span>&#160;        <span class="keyword">typedef</span> boost::shared_array&lt;char&gt; <a class="code" href="namespacesock_1_1net.html#a2165d5b91136adc8c72ad25bfdbd0968">ByteBuffer</a>;</div>
<div class="line"><a name="l00031"></a><span class="lineno">   31</span>&#160;</div>
<div class="line"><a name="l00035"></a><span class="lineno"><a class="line" href="classsock_1_1net_1_1_tcp_connection_stream.html">   35</a></span>&#160;        <span class="keyword">class </span><a class="code" href="classsock_1_1net_1_1_tcp_connection_stream.html">TcpConnectionStream</a> : <span class="keyword">public</span> boost::noncopyable</div>
<div class="line"><a name="l00036"></a><span class="lineno">   36</span>&#160;        {</div>
<div class="line"><a name="l00037"></a><span class="lineno">   37</span>&#160;        <span class="keyword">protected</span>:</div>
<div class="line"><a name="l00038"></a><span class="lineno"><a class="line" href="classsock_1_1net_1_1_tcp_connection_stream.html#a43fe1eaa6c6b4d4ecbb2ba361d312b66">   38</a></span>&#160;            <span class="keyword">friend</span> <span class="keyword">class </span><a class="code" href="classsock_1_1net_1_1_tcp_connection.html">TcpConnection</a>;</div>
<div class="line"><a name="l00039"></a><span class="lineno">   39</span>&#160;        <span class="keyword">protected</span>:</div>
<div class="line"><a name="l00040"></a><span class="lineno"><a class="line" href="classsock_1_1net_1_1_tcp_connection_stream.html#a9b20049f75630dcb8955b0ec91faacb5">   40</a></span>&#160;            <span class="keyword">typedef</span> <a class="code" href="classsock_1_1net_1_1_tcp_connection_stream.html">TcpConnectionStream</a> <span class="keyword">self</span>;</div>
<div class="line"><a name="l00041"></a><span class="lineno">   41</span>&#160;        <span class="keyword">protected</span>:</div>
<div class="line"><a name="l00042"></a><span class="lineno">   42</span>&#160;            <a class="code" href="classsock_1_1net_1_1_tcp_connection_stream.html#af6dcac8d6517ee12ce82c9267249a353">TcpConnectionStream</a>(<a class="code" href="classsock_1_1net_1_1_socket.html">Socket</a>&amp; <a class="code" href="namespacesock.html">sock</a>, <span class="keywordtype">size_t</span> <a class="code" href="classsock_1_1net_1_1_tcp_connection_stream.html#acbb9bc6316d1720f0921c7ec28dd2fdd">size</a>);</div>
<div class="line"><a name="l00043"></a><span class="lineno">   43</span>&#160;            <a class="code" href="classsock_1_1net_1_1_tcp_connection_stream.html#af6dcac8d6517ee12ce82c9267249a353">TcpConnectionStream</a>(<a class="code" href="classsock_1_1net_1_1_socket.html">Socket</a>&amp; <a class="code" href="namespacesock.html">sock</a>, ByteBuffer buff, <span class="keywordtype">size_t</span> <a class="code" href="classsock_1_1net_1_1_tcp_connection_stream.html#acbb9bc6316d1720f0921c7ec28dd2fdd">size</a>);</div>
<div class="line"><a name="l00044"></a><span class="lineno">   44</span>&#160;            <span class="keyword">virtual</span> <a class="code" href="classsock_1_1net_1_1_tcp_connection_stream.html#a399c03537b559c9c981941051adb40c0">~TcpConnectionStream</a>();</div>
<div class="line"><a name="l00045"></a><span class="lineno">   45</span>&#160;</div>
<div class="line"><a name="l00046"></a><span class="lineno">   46</span>&#160;        <span class="keyword">public</span>:</div>
<div class="line"><a name="l00051"></a><span class="lineno"><a class="line" href="classsock_1_1net_1_1_tcp_connection_stream.html#adf259993c6e23518827368d572dd9351">   51</a></span>&#160;            <span class="keywordtype">size_t</span> <a class="code" href="classsock_1_1net_1_1_tcp_connection_stream.html#adf259993c6e23518827368d572dd9351">capacity</a>(<span class="keywordtype">void</span>) { <span class="keywordflow">return</span> buffSize_; }</div>
<div class="line"><a name="l00052"></a><span class="lineno">   52</span>&#160;</div>
<div class="line"><a name="l00057"></a><span class="lineno"><a class="line" href="classsock_1_1net_1_1_tcp_connection_stream.html#acbb9bc6316d1720f0921c7ec28dd2fdd">   57</a></span>&#160;            <span class="keywordtype">size_t</span> <a class="code" href="classsock_1_1net_1_1_tcp_connection_stream.html#acbb9bc6316d1720f0921c7ec28dd2fdd">size</a>(<span class="keywordtype">void</span>) { <span class="keywordflow">return</span> size_; }</div>
<div class="line"><a name="l00058"></a><span class="lineno">   58</span>&#160;</div>
<div class="line"><a name="l00063"></a><span class="lineno"><a class="line" href="classsock_1_1net_1_1_tcp_connection_stream.html#a8fdbc2e9a98ff5060764924a01aba7b0">   63</a></span>&#160;            <span class="keywordtype">size_t</span> <a class="code" href="classsock_1_1net_1_1_tcp_connection_stream.html#a8fdbc2e9a98ff5060764924a01aba7b0">space</a>(<span class="keywordtype">void</span>) { <span class="keywordflow">return</span> buffSize_ - size_; }</div>
<div class="line"><a name="l00064"></a><span class="lineno">   64</span>&#160;</div>
<div class="line"><a name="l00065"></a><span class="lineno">   65</span>&#160;        <span class="keyword">protected</span>:</div>
<div class="line"><a name="l00066"></a><span class="lineno">   66</span>&#160;</div>
<div class="line"><a name="l00070"></a><span class="lineno"><a class="line" href="classsock_1_1net_1_1_tcp_connection_stream.html#ac81434c87413e33503b720296ca4c530">   70</a></span>&#160;            <span class="keywordtype">void</span> <a class="code" href="classsock_1_1net_1_1_tcp_connection_stream.html#ac81434c87413e33503b720296ca4c530">reset</a>(<span class="keywordtype">void</span>)</div>
<div class="line"><a name="l00071"></a><span class="lineno">   71</span>&#160;            {</div>
<div class="line"><a name="l00072"></a><span class="lineno">   72</span>&#160;                begIndex_ = 0;</div>
<div class="line"><a name="l00073"></a><span class="lineno">   73</span>&#160;                endIndex_ = 0;</div>
<div class="line"><a name="l00074"></a><span class="lineno">   74</span>&#160;                size_ = 0;</div>
<div class="line"><a name="l00075"></a><span class="lineno">   75</span>&#160;            }</div>
<div class="line"><a name="l00076"></a><span class="lineno">   76</span>&#160;</div>
<div class="line"><a name="l00077"></a><span class="lineno">   77</span>&#160;        <span class="keyword">protected</span>:</div>
<div class="line"><a name="l00084"></a><span class="lineno">   84</span>&#160;            <span class="keywordtype">size_t</span> <a class="code" href="classsock_1_1net_1_1_tcp_connection_stream.html#a17a557385b5af582c98bdd525a333cf6">read</a>(<span class="keywordtype">char</span>* buf, <span class="keywordtype">size_t</span> length);</div>
<div class="line"><a name="l00085"></a><span class="lineno">   85</span>&#160;</div>
<div class="line"><a name="l00092"></a><span class="lineno">   92</span>&#160;            <span class="keywordtype">size_t</span> <a class="code" href="classsock_1_1net_1_1_tcp_connection_stream.html#ae94584be5275ff8da7f220223beb965a">write</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* buf, <span class="keywordtype">size_t</span> length);</div>
<div class="line"><a name="l00093"></a><span class="lineno">   93</span>&#160;</div>
<div class="line"><a name="l00094"></a><span class="lineno">   94</span>&#160;        <span class="keyword">protected</span>:</div>
<div class="line"><a name="l00101"></a><span class="lineno">  101</span>&#160;            <span class="keywordtype">size_t</span> <a class="code" href="classsock_1_1net_1_1_tcp_connection_stream.html#a4f00f30ffc87897772183c70b4f3abd4">peek</a>(<span class="keywordtype">char</span>* buf, <span class="keywordtype">size_t</span> length);</div>
<div class="line"><a name="l00102"></a><span class="lineno">  102</span>&#160;</div>
<div class="line"><a name="l00108"></a><span class="lineno">  108</span>&#160;            <span class="keywordtype">size_t</span> <a class="code" href="classsock_1_1net_1_1_tcp_connection_stream.html#a28bb2de60e94afafaf5f66710a9442c6">skip</a>(<span class="keywordtype">size_t</span> length);</div>
<div class="line"><a name="l00109"></a><span class="lineno">  109</span>&#160;</div>
<div class="line"><a name="l00110"></a><span class="lineno">  110</span>&#160;        <span class="keyword">protected</span>:</div>
<div class="line"><a name="l00111"></a><span class="lineno"><a class="line" href="classsock_1_1net_1_1_tcp_connection_stream.html#a4ea4d8b723691673ea6574d0ec75535a">  111</a></span>&#160;            <a class="code" href="classsock_1_1net_1_1_socket.html">Socket</a>&amp; <a class="code" href="classsock_1_1net_1_1_tcp_connection_stream.html#a4ea4d8b723691673ea6574d0ec75535a">sock_</a>;          <span class="comment">/* 和流关联的套接字 */</span></div>
<div class="line"><a name="l00112"></a><span class="lineno">  112</span>&#160;</div>
<div class="line"><a name="l00113"></a><span class="lineno">  113</span>&#160;        <span class="keyword">private</span>:</div>
<div class="line"><a name="l00114"></a><span class="lineno">  114</span>&#160;            <span class="keywordtype">size_t</span> buffSize_;       <span class="comment">/* 缓存大小 */</span></div>
<div class="line"><a name="l00115"></a><span class="lineno">  115</span>&#160;            <span class="keywordtype">size_t</span> begIndex_;       <span class="comment">/* 数据开始位置 */</span></div>
<div class="line"><a name="l00116"></a><span class="lineno">  116</span>&#160;            <span class="keywordtype">size_t</span> endIndex_;       <span class="comment">/* 数据结束位置 */</span></div>
<div class="line"><a name="l00117"></a><span class="lineno">  117</span>&#160;            <span class="keywordtype">size_t</span> size_;           <span class="comment">/* 数据大小 */</span></div>
<div class="line"><a name="l00118"></a><span class="lineno">  118</span>&#160;            ByteBuffer buffer_;     <span class="comment">/* 缓存 */</span></div>
<div class="line"><a name="l00119"></a><span class="lineno">  119</span>&#160;        };</div>
<div class="line"><a name="l00120"></a><span class="lineno">  120</span>&#160;    }</div>
<div class="line"><a name="l00121"></a><span class="lineno">  121</span>&#160;}</div>
<div class="line"><a name="l00122"></a><span class="lineno">  122</span>&#160;</div>
<div class="line"><a name="l00123"></a><span class="lineno">  123</span>&#160;<span class="preprocessor">#endif </span><span class="comment">/* SOCK_NET_TCP_CONNECTION_STREAM_H_ */</span><span class="preprocessor"></span></div>
<div class="ttc" id="classsock_1_1net_1_1_tcp_connection_stream_html_a4ea4d8b723691673ea6574d0ec75535a"><div class="ttname"><a href="classsock_1_1net_1_1_tcp_connection_stream.html#a4ea4d8b723691673ea6574d0ec75535a">sock::net::TcpConnectionStream::sock_</a></div><div class="ttdeci">Socket &amp; sock_</div><div class="ttdef"><b>Definition:</b> tcp_connection_stream.h:111</div></div>
<div class="ttc" id="namespacesock_1_1net_html_a2165d5b91136adc8c72ad25bfdbd0968"><div class="ttname"><a href="namespacesock_1_1net.html#a2165d5b91136adc8c72ad25bfdbd0968">sock::net::ByteBuffer</a></div><div class="ttdeci">boost::shared_array&lt; char &gt; ByteBuffer</div><div class="ttdef"><b>Definition:</b> tcp_connection_stream.h:28</div></div>
<div class="ttc" id="classsock_1_1net_1_1_tcp_connection_stream_html"><div class="ttname"><a href="classsock_1_1net_1_1_tcp_connection_stream.html">sock::net::TcpConnectionStream</a></div><div class="ttdoc">Tcp连接流 </div><div class="ttdef"><b>Definition:</b> tcp_connection_stream.h:35</div></div>
<div class="ttc" id="classsock_1_1net_1_1_tcp_connection_stream_html_a4f00f30ffc87897772183c70b4f3abd4"><div class="ttname"><a href="classsock_1_1net_1_1_tcp_connection_stream.html#a4f00f30ffc87897772183c70b4f3abd4">sock::net::TcpConnectionStream::peek</a></div><div class="ttdeci">size_t peek(char *buf, size_t length)</div><div class="ttdoc">从流中读数据(不会从流中删除读取的数据) </div><div class="ttdef"><b>Definition:</b> tcp_connection_stream.cc:97</div></div>
<div class="ttc" id="classsock_1_1net_1_1_tcp_connection_stream_html_a28bb2de60e94afafaf5f66710a9442c6"><div class="ttname"><a href="classsock_1_1net_1_1_tcp_connection_stream.html#a28bb2de60e94afafaf5f66710a9442c6">sock::net::TcpConnectionStream::skip</a></div><div class="ttdeci">size_t skip(size_t length)</div><div class="ttdoc">忽略数据 </div><div class="ttdef"><b>Definition:</b> tcp_connection_stream.cc:119</div></div>
<div class="ttc" id="classsock_1_1net_1_1_tcp_connection_stream_html_acbb9bc6316d1720f0921c7ec28dd2fdd"><div class="ttname"><a href="classsock_1_1net_1_1_tcp_connection_stream.html#acbb9bc6316d1720f0921c7ec28dd2fdd">sock::net::TcpConnectionStream::size</a></div><div class="ttdeci">size_t size(void)</div><div class="ttdoc">获取流中数据大小 </div><div class="ttdef"><b>Definition:</b> tcp_connection_stream.h:57</div></div>
<div class="ttc" id="classsock_1_1net_1_1_tcp_connection_html"><div class="ttname"><a href="classsock_1_1net_1_1_tcp_connection.html">sock::net::TcpConnection</a></div><div class="ttdoc">网络连接 </div><div class="ttdef"><b>Definition:</b> tcp_connection.h:27</div></div>
<div class="ttc" id="classsock_1_1net_1_1_tcp_connection_stream_html_ae94584be5275ff8da7f220223beb965a"><div class="ttname"><a href="classsock_1_1net_1_1_tcp_connection_stream.html#ae94584be5275ff8da7f220223beb965a">sock::net::TcpConnectionStream::write</a></div><div class="ttdeci">size_t write(const char *buf, size_t length)</div><div class="ttdoc">向流中写数据 </div><div class="ttdef"><b>Definition:</b> tcp_connection_stream.cc:41</div></div>
<div class="ttc" id="namespacesock_html"><div class="ttname"><a href="namespacesock.html">sock</a></div><div class="ttdef"><b>Definition:</b> atomic.h:17</div></div>
<div class="ttc" id="classsock_1_1net_1_1_tcp_connection_stream_html_a8fdbc2e9a98ff5060764924a01aba7b0"><div class="ttname"><a href="classsock_1_1net_1_1_tcp_connection_stream.html#a8fdbc2e9a98ff5060764924a01aba7b0">sock::net::TcpConnectionStream::space</a></div><div class="ttdeci">size_t space(void)</div><div class="ttdoc">获取流剩余存储空间 </div><div class="ttdef"><b>Definition:</b> tcp_connection_stream.h:63</div></div>
<div class="ttc" id="classsock_1_1net_1_1_tcp_connection_stream_html_af6dcac8d6517ee12ce82c9267249a353"><div class="ttname"><a href="classsock_1_1net_1_1_tcp_connection_stream.html#af6dcac8d6517ee12ce82c9267249a353">sock::net::TcpConnectionStream::TcpConnectionStream</a></div><div class="ttdeci">TcpConnectionStream(Socket &amp;sock, size_t size)</div><div class="ttdef"><b>Definition:</b> tcp_connection_stream.cc:14</div></div>
<div class="ttc" id="classsock_1_1net_1_1_tcp_connection_stream_html_ac81434c87413e33503b720296ca4c530"><div class="ttname"><a href="classsock_1_1net_1_1_tcp_connection_stream.html#ac81434c87413e33503b720296ca4c530">sock::net::TcpConnectionStream::reset</a></div><div class="ttdeci">void reset(void)</div><div class="ttdoc">重置流 </div><div class="ttdef"><b>Definition:</b> tcp_connection_stream.h:70</div></div>
<div class="ttc" id="classsock_1_1net_1_1_socket_html"><div class="ttname"><a href="classsock_1_1net_1_1_socket.html">sock::net::Socket</a></div><div class="ttdoc">套接字 </div><div class="ttdef"><b>Definition:</b> socket.h:38</div></div>
<div class="ttc" id="socket_8h_html"><div class="ttname"><a href="socket_8h.html">socket.h</a></div></div>
<div class="ttc" id="classsock_1_1net_1_1_tcp_connection_stream_html_a17a557385b5af582c98bdd525a333cf6"><div class="ttname"><a href="classsock_1_1net_1_1_tcp_connection_stream.html#a17a557385b5af582c98bdd525a333cf6">sock::net::TcpConnectionStream::read</a></div><div class="ttdeci">size_t read(char *buf, size_t length)</div><div class="ttdoc">从流中读数据 </div><div class="ttdef"><b>Definition:</b> tcp_connection_stream.cc:69</div></div>
<div class="ttc" id="classsock_1_1net_1_1_tcp_connection_stream_html_adf259993c6e23518827368d572dd9351"><div class="ttname"><a href="classsock_1_1net_1_1_tcp_connection_stream.html#adf259993c6e23518827368d572dd9351">sock::net::TcpConnectionStream::capacity</a></div><div class="ttdeci">size_t capacity(void)</div><div class="ttdoc">获取流能存储的数据大小 </div><div class="ttdef"><b>Definition:</b> tcp_connection_stream.h:51</div></div>
<div class="ttc" id="classsock_1_1net_1_1_tcp_connection_stream_html_a399c03537b559c9c981941051adb40c0"><div class="ttname"><a href="classsock_1_1net_1_1_tcp_connection_stream.html#a399c03537b559c9c981941051adb40c0">sock::net::TcpConnectionStream::~TcpConnectionStream</a></div><div class="ttdeci">virtual ~TcpConnectionStream()</div><div class="ttdef"><b>Definition:</b> tcp_connection_stream.cc:36</div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.10
</small></address>
</body>
</html>
